﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.Model.ERPModels
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("v采购订单表头", "ERP")]
    public class ErpPurchaseOrderHeader
    {
        public ErpPurchaseOrderHeader()
        {
        }
        [SugarColumn(ColumnName = "fID")]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "类型")]
        public string Type { get; set; }

        [SugarColumn(ColumnName = "单号")]
        public string OrderId { get; set; }

        [SugarColumn(ColumnName = "日期")]
        public DateTime? OrderDate { get; set; }

        [SugarColumn(ColumnName = "仓库ID")]
        public int? WarehouseId { get; set; }

        [SugarColumn(ColumnName = "仓库")]
        public string WarehouseName { get; set; }

        [SugarColumn(ColumnName = "供应商ID")]
        public int? SupplierId { get; set; }

        [SugarColumn(ColumnName = "供应商编号")]
        public string SupplierCode { get; set; }

        [SugarColumn(ColumnName = "供应商")]
        public string SupplierName { get; set; }

        [SugarColumn(ColumnName = "要求送货日期")]
        public DateTime? DeliveryDate { get; set; }

        [SugarColumn(ColumnName = "收货地址")]
        public string ReceiveAddress { get; set; }

        [SugarColumn(ColumnName = "收货人")]
        public string Receiver { get; set; }

        [SugarColumn(ColumnName = "联系电话")]
        public string Telephone { get; set; }

        [SugarColumn(ColumnName = "备注")]
        public string Remark { get; set; }

        [SugarColumn(ColumnName = "制单人")]
        public string CreateUser { get; set; }

        [SugarColumn(ColumnName = "制单日期")]
        public DateTime? CreateDate { get; set; }

        [SugarColumn(ColumnName = "确认人")]
        public string Confirmer { get; set; }

        [SugarColumn(ColumnName = "确认日期")]
        public DateTime? ConfirmDate { get; set; }

        [SugarColumn(ColumnName = "报货日期")]
        public DateTime? AnswerDate { get; set; }

        [SugarColumn(ColumnName = "收货日期")]
        public DateTime? ReceiveDate { get; set; }

        [SugarColumn(ColumnName = "收货金额")]
        public decimal? ReceiveAmt { get; set; }

        [SugarColumn(ColumnName = "账单打印")]
        public DateTime? BillPrintDate { get; set; }

        [SugarColumn(ColumnName = "付款日期")]
        public DateTime? PayDate { get; set; }

        [SugarColumn(ColumnName = "状态")]
        public int? Status { get; set; }

        [SugarColumn(ColumnName = "打印人")]
        public string PrintUser { get; set; }

        [SugarColumn(ColumnName = "打印日期")]
        public DateTime? PrintDate { get; set; }

        [SugarColumn(ColumnName = "损耗类型")]
        public string LossType { get; set; }

        [SugarColumn(ColumnName = "订单状态")]
        public string OrderStatus { get; set; }

        [SugarColumn(ColumnName = "维护采购")]
        public string Maintain { get; set; }
    }
}
